package cn.blossoming.dao.domain;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;
import java.time.LocalDateTime;

@Entity
@DynamicInsert
@DynamicUpdate
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "tips_picture", schema = "blosson")
public class TipsPictureEntity {
    @Id
    private Integer id;
    private Integer stepNum;
    private Integer imgHeight;
    private Integer imgWidth;
    private String url;
    private String sourceUrl;
    private String content;
    private String remark;
    private LocalDateTime updateTime;
    private LocalDateTime createTime;

    @ManyToOne
    @JoinColumn(name = "tips_id")
    private TipsEntity tips;

}
